﻿<UserControl x:Class="PocketBook.Views.Designs.DayPageView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <Grid>
        <FlowDocumentScrollViewer ScrollViewer.VerticalScrollBarVisibility="Hidden">
            <FlowDocument>
                <Table BorderThickness="0,0,0,1.5" BorderBrush="Black" FontSize="10pt">
                    <TableRowGroup>
                        <TableRow>
                            <TableCell>
                                <Paragraph  >
                                    <Run FontSize="36" BaselineAlignment="Top" Text="{Binding Path=Date.Day, Mode=OneWay}" />
                                    <Run Text="{Binding Date, Mode=OneWay, StringFormat=dddd}" />
                                </Paragraph>
                            </TableCell>
                            <TableCell>
                                <Paragraph TextAlignment="Right">
                                    <Run Text="{Binding Date, Mode=OneWay, StringFormat=MMMM yyyy}" />
                                </Paragraph>
                            </TableCell>
                        </TableRow>
                    </TableRowGroup>
                </Table>
            </FlowDocument>
        </FlowDocumentScrollViewer>
    </Grid>
</UserControl>
